from appium.webdriver.common.mobileby import MobileBy
from appium.webdriver.webdriver import WebDriver

from test_appium.test_wechat.PO.PO_page.AddMember_Page import AddMember_Page
from test_appium.test_wechat.PO.PO_page.BasePage import BasePage


class AddressListPage(BasePage):
    add_btn = (MobileBy.XPATH,"//*[@class='android.widget.TextView'and@text ='添加成员']")
    def goto_addmember_Page(self):
        """
        点击添加成员
        跳转到添加成员页面
        :return:
        """
        #add_btn = self.driver.find_element_by_xpath("//*[@class='android.widget.TextView'and@text ='添加成员']")


        self.find_and_click(*self.add_btn)
        self.driver.implicitly_wait(10)
        return AddMember_Page(self.driver)

